package com.ruoyi.accountant.mapper;

import com.ruoyi.accountant.domain.Inaccount;
import com.ruoyi.accountant.domain.InaccountExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.data.jpa.repository.Query;

public interface InaccountMapper {
    int countByExample(InaccountExample example);

    int deleteByExample(InaccountExample example);

    int deleteByPrimaryKey(Long iid);

    int insert(Inaccount record);

    int insertSelective(Inaccount record);

    List<Inaccount> selectByExample(InaccountExample example);

    Inaccount selectByPrimaryKey(Long iid);

    int updateByExampleSelective(@Param("record") Inaccount record, @Param("example") InaccountExample example);

    int updateByExample(@Param("record") Inaccount record, @Param("example") InaccountExample example);

    int updateByPrimaryKeySelective(Inaccount record);

    int updateByPrimaryKey(Inaccount record);

    @Select("select * from Inaccount where endtime <= date(now()) and dtype = '转移'")
    List<Inaccount> findTransferEnd();
}